﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Com1015m.aspx.cs" Inherits="Updms.Com.Com1015m" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Com1015m] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->
		</td>
	</tr>
	<tr>
		<td id="menu_area">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Com1015m" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_save" Text="저장" runat="server" CssClass="ibtn ibtn_save" OnClientClick="return chkSave()" OnClick="ibtn_save_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="11%"><asp:Literal id="ltr_user_id" Text="아이디" runat="server" /></td>
					<td class="ctl" width="22%"><asp:Label id="lbl_user_id" runat="server"></asp:Label></td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_access_level" Text="권한" runat="server" /></td>
					<td class="ctl" width="22%"><asp:Label id="lbl_access_level" runat="server"></asp:Label></td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_user_div" Text="사용자구분" runat="server" /></td>
					<td class="ctl" width="22%"><asp:Label id="lbl_user_div" runat="server"></asp:Label></td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<table class="table_detail">
				<tr>
					<td class="lbl" width="11%"><asp:Literal id="ltr_nm" Text="이름" runat="server" /></td>
					<td class="ctl" width="22%"><asp:TextBox id="txt_nm" runat="server" Width="98%" CssClass="ib_b req"></asp:TextBox></td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_start_page" Text="시작페이지" runat="server" /></td>
					<td class="ctl" width="22%"><asp:DropDownList id="ddl_start_page" CssClass="ddl che" runat="server"></asp:DropDownList></td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_language_set" Text="언어" runat="server" /></td>
					<td class="ctl" width="22%"><asp:RadioButtonList id="rbl_language_set" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="rbl_flow" /></td>
				</tr>
				<tr>
					<td class="lbl"><asp:Literal id="ltr_change_pw" Text="비밀번호변경" runat="server" /></td>
					<td class="ctl"><asp:linkbutton id="ibtn_change_pw" runat="server" CssClass="sbtn sbtn_change_pw"></asp:linkbutton><asp:Label id="lbl_pw_update_dt" CssClass="div_right" style="padding:0 2px 0 0;" runat="server"></asp:Label></td>
					<td class="lbl"><asp:Literal id="ltr_email" Text="이메일" runat="server" /></td>
					<td class="ctl" colspan="3"><asp:TextBox id="txt_email" runat="server" Width="99.2%" CssClass="ib_b"></asp:TextBox></td>
				</tr>
			</table>
			<!-- 디테일1 끝 -->
			<asp:Panel ID="Panel1" runat="server">
			<div class="div_window">
				<img id="img_close" src="../Common/Images/close.gif" class="hand" style="float:right;" onclick="hideModalPopupExtender();" alt="닫기" /><br />
				<object data="Com3011p.aspx?page_mode=MP" style="width:640px; height:200px;"></object>
			</div>
			</asp:Panel>
			<!-- 리스트셋 시작 -->
			<!-- 리스트셋 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
			<asp:label id="lbl_pk" runat="server"></asp:label>
			<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
			</div>
			<!-- 히든값 끝 -->
			<act:ModalPopupExtender ID="mpe_change_pw" runat="server"
				BehaviorID="mpe_change_pw_b"
				TargetControlID="ibtn_change_pw"
				PopupControlID="Panel1"
				CancelControlID="img_close"
				BackgroundCssClass="modalBackground" />
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>
</form>
<script type="text/javascript" language="javascript" defer="defer">
	//저장
	function chkSave() {
		if ($F("txt_nm").blank()) {
			msgBox.alert(getMsg(MSG_ERR_010), setFocus, "txt_nm"); //이름을 입력해 주세요
			return false;
		}

		if ($F("ddl_start_page").blank()) {
			msgBox.alert(getMsg(MSG_ERR_015), setFocus, "ddl_start_page"); //하위프로그램만 선택해주세요
			return false;
		}

		msgBox.confirm(getMsg(MSG_CFM_000), doSave);	//저장하시겠습니까?
		return false;
	}
	
	//상위시스템 선택불가
	function chkDisableOption(obj) {
		if (obj[obj.selectedIndex].value == "") {
			msgBox.alert(getMsg(MSG_ERR_015));	//하위프로그램만 선택해주세요
			obj.selectedIndex = 0;
			return;
		}
	}

	//비밀번호 변경창 숨기기
	function hideModalPopupExtender() {
		var mpeBehavior = $find('mpe_change_pw_b');
		mpeBehavior.hide();
	}

</script>
</body>
</html>